Lab Practice Quiz 5 Write a program that reads lines of text and prints the longest line. (I will provide the following main program. You just need to provide the functions similar to the following.) #include #define MAXLINE 1000 /* maximum input line size */ int getline(char line[], int maxline); void copy(char to[], char from[]); /* array2.c print the longest input line */ main() { int len; /* length of current line */ int max; /* length of longest line */ char line[MAXLINE]; /* the current line */ char longest[MAXLINE]; /* the longest line */ max = 0; while ((len = getline(line, MAXLINE)) > 0) if (len > max) { max = len; copy(longest, line); } if (max > 0) /* at least one line */ printf("%s", longest); return 0; } /* getline reads a line into s and returns the length */ int getline(char s[], int lim) { int c, i; for (i = 0; i